package com.feicheng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 周启博
 * @since 2022-06-27
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PurchaseHeader implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采购头id
     */
    @TableId(value = "purchase_item_id", type = IdType.AUTO)
    private Integer purchaseHeaderId;

    /**
     * 采购时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    /**
     * 门店id
     */
    private Integer storeId;

    /**
     * 采购订单编号
     */
    private String batchNo;

    /**
     * 员工信息id
     */
    private Integer userId;

    /**
     * 采购订单状态
     */
    private String state;
}
